<template>
    <div class="set">
        <van-nav-bar title="个人中心" left-arrow
        @click-left="onClickLeft"/>
        <van-cell title="地址管理" is-link />
        <van-cell title="经营执照" is-link />
        <van-cell title="协议规则" is-link />
        <van-cell title="隐私管理" is-link />
        <van-cell title="爱坤商城用户协议" is-link />
        <van-cell title="爱坤商城隐私政策" is-link />
        <van-cell title="爱坤账号使用协议" is-link />
        <van-cell title="爱坤账号隐私政策" is-link />

        <van-button 
        color="linear-gradient(to top, #f2f2f2, #fbfbfb)"
        type="primary"
        block
        @click="login"
        >退出登录</van-button>
    </div>
</template>
<script>
import { removeToken } from '@/util/auth';

export default {
    data(){
        return{};
    },
    methods:{
        onClickLeft(){
            this.$router.go(-1);
        },
        login(token){
            removeToken(token)
            this.$router.push('/login')
        }
    }
}
</script>

<style scoped>
::v-deep .van-nav-bar {
  background: #f2f2f2;
  height: 50px;
}
::v-deep .van-button {
  position: absolute;

  bottom: 0;
  color: #000 !important;
}

</style>